<?php
/**
 * Created by PhpStorm.
 * User: xiaomeng
 * Date: 17-7-11
 * Time: 下午4:47
 */
    define('ROOT',__DIR__);
    define('DS',DIRECTORY_SEPARATOR);
    require_once(ROOT.'/vendor/autoload.php');
    $serv = new \mphp\Socket\webSocket();
    $config_path = ROOT.DS.'config';
    $config = \mphp\Core\Config::load($config_path);
    $serv->run($config['chat']);
